// ==UserScript==
// @match http://go.calcalist.co.il/*
// @description Opens calcalist from ynet in a new tab instead of a new window
// ==/UserScript==

var links = document.getElementsByTagName('a');
for (var curr=0; curr<links.length; curr++) {
	var link = links[curr];
	var linkText = link.getAttribute('onclick');
	if (linkText.indexOf('OpenCalcalistWindow') === 0) {
		link.setAttribute('onclick', null);
		link.setAttribute('target', '_blank');
		link.setAttribute('href', linkText.split("'")[1]);		
	}
}




